package com.ss.whisper2.dao;

import com.ss.whisper2.pojo.entity.user.RequestUser;
import com.ss.whisper2.pojo.entity.user.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserDao {

	User getUser(@Param("username") String username);

	List<User> getUserList();

	void insertUser(@Param("user") RequestUser reqUser);

	void deleteUser(@Param("username") String username);

	void setUser(@Param("user") RequestUser reqUser);

	void setUserPassword(@Param("user") RequestUser reqUser);

	void recordLoginUser(@Param("username") String username);
}
